<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	var tool =[{
		text:"编辑",
		iconCls:"icon-edit",
		handler:function(){
			var obj  = $("#ta").datagrid("getSelections");
			if(obj == null || obj.length != 1){
				$.messager.alert('提示','选择数据不合法');
			}else{
				$("#d").window({
					title:"修改供应商信息",
					width:"80%",
					height:"80%",
					modal:true,
					href:"editProvider"
				});
			}
		}
	}];
</script> 
<table id="ta" class="easyui-datagrid" data-options="pageSize:30,toolbar:tool,pagination:true,url:'provider/showProvider',singleSelect:false">
	 <thead>   
        <tr>   
            <th data-options="field:'ck',checkbox:true"></th>
            <th data-options="field:'providerid',width:100">供应商编号</th>   
            <th data-options="field:'providername',width:200">供应商姓名</th>   
            <th data-options="field:'providerlegal',width:100">供应商负责人</th>  
            <th data-options="field:'providertel',width:150">供应商电话</th>
            <th data-options="field:'providercontinue',width:150">是否继续供应</th>   
        </tr>   
    </thead>   
</table>
<div id="d" >
</div>
